package com.example.service;

import com.example.Req.LotteryTicketReq;
import com.example.common.Pagination;
import com.example.model.LotteryTicket;
import com.example.model.LotteryTicketRes;

import java.util.List;

public interface LotteryTicketService {
    int batchInsertLotteryTicket(int year, int type);

    void calculateRepeat(String sort, int type) throws Exception;

    //Pagination<LotteryTicketRes> getRepeatList(LotteryTicketReq req);

    Pagination<LotteryTicketRes> getTicketListPage(LotteryTicketReq req);

    void calculateNewDataRepeat(String sort, int num) throws Exception;

    int insertLotteryTicket(LotteryTicketReq req);

    int updateLotteryTicket(LotteryTicketReq req);

    int delLotteryTicket(LotteryTicketReq req);

    void jiSuanRepeat(String calculate, int type);

    void jsRepeat(int type, int small, int big);

    List<LotteryTicketRes> getBuyTicketList(LotteryTicketReq req);
}
